<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.ecguard.build.struts.form.MyProForm"%>
<%@page import="java.util.List"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>login page</title>
	</head>
	<body>
		<h1>
			你发起的任务有：
		</h1>
		<br>
		<table width="100%" border="1" cellpadding="0" cellspacing="0">
			<tr bgcolor="#FDFDD0">
				<td>
					任务名称
				</td>
				<td>
					创建时间
				</td>
				<td>
					完成状态
				</td>
				<td>
					查看详情
				</td>
			</tr>
			<%
				List<MyProForm> list = (List<MyProForm>) request
						.getAttribute("list");
				if (list != null && list.size() > 0) {
					for (Object o : list) {
						MyProForm mf = (MyProForm) o;
			%>
			<tr>
				<td>
					<%=mf.getPname()%>
				</td>
				<td>
					<%=mf.getCreateTime()%>
				</td>
				<td>
					<%=mf.getEndTime()%>
				</td>
				<td>
					<a href="#">查看</a>
				</td>
			</tr>
			<%
				}
				} else {
			%>
				<tr><td colspan="4">你还没有发起流程！！</td></tr>
			<%
				}
			%>
		</table>
	</body>
</html>
